<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<?php
			$score = 50;
			switch(floor($score / 10))
			{
				case 10:
				case 9:
					$grade="excellent";
					break;
				case 8:
				case 7:
				case 6:
					$grade="passed";
					break;
				default:
					$grade="failed";
					break;
			}
			echo "百分制成绩：".$score."<br>";
			echo "等级字符制成绩：".$grade;
		?>
	</body>
</html>